package com.dai.keshe.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = {"/API"})
public class RestFulAPIController {

    private Logger logger = LoggerFactory.getLogger(RestFulAPIController.class);

    @GetMapping(value = {"/get/{id}"})
    public String Get(@PathVariable(name = "id") int id) {
        logger.info("调用get_api,获取参数{}",id);
        return "调用get_api,获取参数" + id + "";
    }
}

